package com.pda.xinma.net;



import com.pda.xinma.bean.ArtificialListBean;
import com.pda.xinma.bean.BackDepotListBean;
import com.pda.xinma.bean.BackInfoBean;
import com.pda.xinma.bean.CompleteBean;
import com.pda.xinma.bean.ConnectionBean;
import com.pda.xinma.bean.DeliveryBasicInfoBean;
import com.pda.xinma.bean.DeliveryInfoBean;
import com.pda.xinma.bean.EndFaceDetailBean;
import com.pda.xinma.bean.EndFaceListBean;
import com.pda.xinma.bean.ExceptionsListBean;
import com.pda.xinma.bean.FullInventoryListBean;
import com.pda.xinma.bean.HandingInDetailBean;
import com.pda.xinma.bean.HandingInListBean;
import com.pda.xinma.bean.HandingInStaticsBean;
import com.pda.xinma.bean.HandingOutDetailBean;
import com.pda.xinma.bean.HandingOutListBean;
import com.pda.xinma.bean.HandingOutStaticsBean;
import com.pda.xinma.bean.HnadingInDetailListBean;
import com.pda.xinma.bean.LatheMachinBean;
import com.pda.xinma.bean.LatheOrderBean;
import com.pda.xinma.bean.LoginBean;
import com.pda.xinma.bean.ManifestListBean;
import com.pda.xinma.bean.OrderBean;
import com.pda.xinma.bean.OutSignBean;
import com.pda.xinma.bean.PickInfoBean;
import com.pda.xinma.bean.ProcessBean;
import com.pda.xinma.bean.ScanResultBean;
import com.pda.xinma.bean.SearchBean;
import com.pda.xinma.bean.SelectBean;
import com.pda.xinma.bean.UnLockBean;
import com.pda.xinma.bean.UserBean;
import com.pda.xinma.bean.WaitOutStockListBean;
import com.pda.xinma.bean.WholePalletInfoBean;
import com.pda.xinma.bean.WorkSurfaceBean;
import com.pda.xinma.bean.request.AgvMoveRequest;
import com.pda.xinma.bean.request.CallCarryRequest;
import com.pda.xinma.bean.request.CompleteRequest;
import com.pda.xinma.bean.request.ConfirmEntry;
import com.pda.xinma.bean.request.ConfirmStockRequest;
import com.pda.xinma.bean.request.HandingInRequest;
import com.pda.xinma.bean.request.InventoryConfirmRequst;
import com.pda.xinma.bean.request.ManMadeRequest;
import com.pda.xinma.bean.request.PickingRequest;
import com.pda.xinma.bean.request.QRcodeRequest;
import com.pda.xinma.bean.request.RecommendRequest;
import com.wangshen.base.net.bean.BaseAppEntity;
import com.wangshen.base.net.bean.BaseRowsAppEntity;
import com.wangshen.base.net.bean.ImageEntity;

import java.util.List;

import io.reactivex.Observable;
import okhttp3.MultipartBody;
import okhttp3.RequestBody;
import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.Headers;
import retrofit2.http.Multipart;
import retrofit2.http.POST;
import retrofit2.http.Part;
import retrofit2.http.Path;
import retrofit2.http.Query;

public interface ApiService {
    /**
     * 登录
     * @return
     */
    @POST("/pda/pdaLogin/login")
    @Headers("Content-Type:application/json;charset=UTF-8")
    Observable<BaseAppEntity<LoginBean>> signIn(@Body RequestBody body);
    /**
     * 整箱下架/出库 - 明细
     * @return
     */
    @POST("/pda/about/scanTheQRCodeToVerify")
    @Headers("Content-Type:application/json;charset=UTF-8")
    Observable<BaseAppEntity<ScanResultBean>> scanTheQRCodeToVerify(@Body QRcodeRequest body);
    /**
     * 根据登录人查询工作中心列表
     * @return
     */
    @GET("/pda/about/getCenterByUserId")
    @Headers("Content-Type:application/json;charset=UTF-8")
    Observable<BaseAppEntity<List<WorkSurfaceBean>>> getCenterByUserId();

    /**
     * 根据生产订单号查询订单相关信息
     * @return
     */
    @GET("/pda/entry/getOrderByNo/{orderNo}")
    @Headers("Content-Type:application/json;charset=UTF-8")
    Observable<BaseAppEntity<OrderBean>> getOrderByNo(@Path("orderNo") String orderNo);
    /**
     * 根据工作中心查询接驳区域列表
     * @return
     */
    @GET("/pda/entry/getConnectionByCenter/{centerCode}")
    @Headers("Content-Type:application/json;charset=UTF-8")
    Observable<BaseAppEntity<List<ConnectionBean>>> getConnectionByCenter(@Path("centerCode") String centerCode);
    /**
     * 根据生产订单号和工作中心查询工序下拉列表
     * @return
     */
    @GET("/pda/entry/getCenterList/{orderNo}/{centerCode}")
    @Headers("Content-Type:application/json;charset=UTF-8")
    Observable<BaseAppEntity<List<ProcessBean>>> getCenterList(@Path("orderNo") String orderNo, @Path("centerCode") String centerCode);
    /**
     * 根据生产订单号和工作中心查询工序下拉列表在制
     * @return
     */
    @GET("/pda/entry/getCenterList2/{orderNo}/{centerCode}")
    @Headers("Content-Type:application/json;charset=UTF-8")
    Observable<BaseAppEntity<List<ProcessBean>>> getCenterList2(@Path("orderNo") String orderNo, @Path("centerCode") String centerCode);
    /**
     * 根据工序号和生产订单号查询完工信息
     * @return
     */
    @GET("/pda/entry/getComplete/{orderNo}/{processId}")
    @Headers("Content-Type:application/json;charset=UTF-8")
    Observable<BaseAppEntity<CompleteBean>> getComplete(@Path("orderNo") String orderNo, @Path("processId") String processId);

    /**
     * 根据工作中心查询操作员下拉列表
     * @return
     */
    @GET("/pda/entry/getUserByCenterCode/{centerCode}")
    @Headers("Content-Type:application/json;charset=UTF-8")
    Observable<BaseAppEntity<List<UserBean>>> getUserByCenterCode(@Path("centerCode") String centerCode);

    /**
     * 确认完工
     * @return
     */
    @POST("/pda/entry/confirmComplete")
    @Headers("Content-Type:application/json;charset=UTF-8")
    Observable<BaseAppEntity<UserBean>> confirmComplete(@Body CompleteRequest request);

    /**
     * 查询MANZ盘规格下拉列表
     * @return
     */
    @GET("/pda/entry/getManzSpecList")
    @Headers("Content-Type:application/json;charset=UTF-8")
    Observable<BaseAppEntity<List<SelectBean>>> getManzSpecList();
    /**
     * 推荐入库目标库位
     * @return
     */
    @POST("/pda/entry/recommendBin")
    @Headers("Content-Type:application/json;charset=UTF-8")
    Observable<BaseAppEntity<String>> recommendBin(@Body RecommendRequest request);
    /**
     * 确认完工
     * @return
     */
    @POST("/pda/entry/confirmEntry")
    @Headers("Content-Type:application/json;charset=UTF-8")
    Observable<BaseAppEntity<UserBean>> confirmEntry(@Body ConfirmEntry request);


    /**
     * 根据工作中心查询机台下拉列表
     * @return
     */
    @GET("/pda/about/getLatheListByCenter/{centerCode}")
    @Headers("Content-Type:application/json;charset=UTF-8")
    Observable<BaseAppEntity<List<LatheMachinBean>>> getLatheListByCenter(@Path("centerCode") String centerCode);
    /**
     * 根据工作中心查询机台下拉列表
     * @return
     */
    @GET("/pda/entry/getConnectionByOrders/{orders}")
    @Headers("Content-Type:application/json;charset=UTF-8")
    Observable<BaseAppEntity<List<ConnectionBean>>> getConnectionByOrders(@Path("orders") String orders);
    /**
     * 根据工作中心查询机台下拉列表
     * @return
     */
    @GET("/pda/carry/getLatheList")
    @Headers("Content-Type:application/json;charset=UTF-8")
    Observable<BaseAppEntity<List<LatheMachinBean>>> getLatheList();
    /**
     * 确认搬运
     * @return
     */
    @POST("/pda/carry/confirmCarry")
    @Headers("Content-Type:application/json;charset=UTF-8")
    Observable<BaseAppEntity<Object>> confirmCarry(@Body AgvMoveRequest request);

    /**
     * 根据机台查询可叫料生产订单列表
     * @return
     */
    @GET("/pda/delivery/getOrderListByLathe/{latheCode}")
    @Headers("Content-Type:application/json;charset=UTF-8")
    Observable<BaseAppEntity<List<LatheOrderBean>>> getOrderListByLathe(@Path("latheCode") String latheCode,@Query("proOrderNo")String proOrderNo);

    /**
     * 根据机台查询已叫料生产订单列表
     * @return
     */
    @GET("/pda/delivery/getAlreadyOrderListByLathe/{latheCode}")
    @Headers("Content-Type:application/json;charset=UTF-8")
    Observable<BaseAppEntity<List<LatheOrderBean>>> getAlreadyOrderListByLathe(@Path("latheCode") String latheCode,@Query("proOrderNo")String proOrderNo);

    /**
     * 呼叫送料
     * @return
     */
    @POST("/pda/delivery/callCarry")
    @Headers("Content-Type:application/json;charset=UTF-8")
    Observable<BaseAppEntity<UserBean>> callCarry(@Body CallCarryRequest request);

    /**
     * 呼叫送料-可用接驳确认框
     * @return
     */
    @POST("/pda/delivery/callCarry/popUpWindow")
    @Headers("Content-Type:application/json;charset=UTF-8")
    Observable<BaseAppEntity<UserBean>> popUpWindow(@Body CallCarryRequest request);
    /**
     * 根据工序流程查询出库统计/明细
     * @return
     */
    @GET("/pda/delivery/getDeliveryInfoByFlowId/{flowId}")
    @Headers("Content-Type:application/json;charset=UTF-8")
    Observable<BaseAppEntity<DeliveryInfoBean>> getDeliveryInfoByFlowId(@Path("flowId") String flowId);

    /**
     * 根据接驳工位和生产订单号查询拣货信息
     * @return
     */
    @GET("/pda/delivery/getPickInfoByOrderAndBin/{orderNo}/{connectionCode}")
    @Headers("Content-Type:application/json;charset=UTF-8")
    Observable<BaseAppEntity<PickInfoBean>> getPickInfoByOrderAndBin(@Path("orderNo") String orderNo, @Path("connectionCode") String connectionCode);

    /**
     * 确认拣货
     * @return
     */
    @POST("/pda/delivery/confirmPick")
    @Headers("Content-Type:application/json;charset=UTF-8")
    Observable<BaseAppEntity<UserBean>> confirmPick(@Body PickingRequest request);

    /**
     * 确认退回
     * @return
     */
    @POST("/pda/delivery/confirmBack")
    @Headers("Content-Type:application/json;charset=UTF-8")
    Observable<BaseAppEntity<UserBean>> confirmBack(@Body PickingRequest request);

    /**
     *查询人工出库列表
     * @return
     */
    @GET("/pda/delivery/selectArtificialDeliveryList/{warehouseId}")
    @Headers("Content-Type:application/json;charset=UTF-8")
    Observable<BaseRowsAppEntity<List<EndFaceListBean>>> selectArtificialDeliveryList(@Path("warehouseId") String warehouseId, @Query("centerCode")String centerCode,@Query("orderNo")String orderNo);

    /**
     *新查询人工出库列表
     * @return
     */
    @GET("/pda/delivery/selectArtificialList/{warehouseId}")
    @Headers("Content-Type:application/json;charset=UTF-8")
    Observable<BaseRowsAppEntity<List<ArtificialListBean>>> selectArtificialList(@Path("warehouseId") String warehouseId, @Query("centerCode")String centerCode, @Query("orderNo")String orderNo, @Query("startTime")String startTime, @Query("endTime")String endTime);


    /**
     * 查询入库单上架详情
     * @return
     */
    @GET("/pda/delivery/selectDeliveryDetail/{orderNo}")
    @Headers("Content-Type:application/json;charset=UTF-8")
    Observable<BaseAppEntity<EndFaceDetailBean>> selectDeliveryDetail(@Path("orderNo") String orderNo);

    /**
     * 根据生产订单号查询可选工序
     * @return
     */
    @GET("/pda/delivery/getProcessByOrder/{orderNo}")
    @Headers("Content-Type:application/json;charset=UTF-8")
    Observable<BaseAppEntity<List<ProcessBean>>> getProcessByOrder(@Path("orderNo") String orderNo, @Query("centerCode") String centerCode);

    /**
     * 确认出库
     * @return
     */
    @POST("/pda/delivery/confirmArtificialDelivery")
    @Headers("Content-Type:application/json;charset=UTF-8")
    Observable<BaseAppEntity<UserBean>> confirmArtificialDelivery(@Body ManMadeRequest request);
    /**
     * 查询入库单列表
     * @return
     */
    @GET("/pda/entry/selectEntryList")
    @Headers("Content-Type:application/json;charset=UTF-8")
    Observable<BaseRowsAppEntity<List<HandingInListBean>>> selectEntryList(@Query("type")String type, @Query("searchValue")String searchValue,@Query("pageNum") Integer pageNum,@Query("pageSize") Integer pageSize);

    /**
     * 查询入库单上架详情
     * @return
     */
    @GET("/pda/entry/queryEntryShelvesInfo/{entryNo}")
    @Headers("Content-Type:application/json;charset=UTF-8")
    Observable<BaseAppEntity<HandingInDetailBean>> queryEntryShelvesInfo(@Path("entryNo") String entryNo);

    /**
     * 查询入库单上架详情
     * @return
     */
    @GET("/pda/entry/queryEntryShelvesInfo/{thirdOrderNo}")
    @Headers("Content-Type:application/json;charset=UTF-8")
    Observable<BaseAppEntity<HandingInDetailBean>> queryEntryScanShelvesInfo(@Path("thirdOrderNo") String entryNo);
    /**
     * 入库统计
     * @return
     */
    @GET("/pda/entry/queryActualWeight/{rollerId}")
    @Headers("Content-Type:application/json;charset=UTF-8")
    Observable<BaseAppEntity<String>> queryActualWeight(@Path("rollerId") String rollerId);

    /**
     * 确认下发上架任务
     * @return
     */
    @POST("/pda/entry/confirmIssued")
    @Headers("Content-Type:application/json;charset=UTF-8")
    Observable<BaseAppEntity<LoginBean>> confirmIssued(@Body HandingInRequest body);

    /**
     * 入库统计
     * @return
     */
    @GET("/pda/entry/entryStatistics/{entryNo}")
    @Headers("Content-Type:application/json;charset=UTF-8")
    Observable<BaseAppEntity<HandingInStaticsBean>> entryStatistics(@Path("entryNo") String entryNo);
    /**
     * 入库明细
     * @return
     */
    @GET("/pda/entry/entryDetail/{entryNo}")
    @Headers("Content-Type:application/json;charset=UTF-8")
    Observable<BaseAppEntity<HnadingInDetailListBean>> entryDetail(@Path("entryNo") String entryNo);

    /**
     * 入库明细
     * @return
     */
    @GET("/pda/entry/entryClose/{entryNo}")
    @Headers("Content-Type:application/json;charset=UTF-8")
    Observable<BaseAppEntity<HnadingInDetailListBean>> entryClose(@Path("entryNo") String entryNo);

    /**
     * 查询出库单列表
     * @return
     */
    @GET("/pda/delivery/selectDeliveryList")
    @Headers("Content-Type:application/json;charset=UTF-8")
    Observable<BaseRowsAppEntity<List<HandingOutListBean>>> selectDeliveryList(@Query("type")String type, @Query("searchValue")String searchValue,@Query("pageNum") Integer pageNum,@Query("pageSize") Integer pageSize);

    /**
     * 查询出库单基础信息
     * @return
     */
    @GET("/pda/delivery/queryDeliveryBasicInfo/{deliveryNo}")
    @Headers("Content-Type:application/json;charset=UTF-8")
    Observable<BaseAppEntity<DeliveryBasicInfoBean>> queryDeliveryBasicInfo(@Path("deliveryNo") String entryNo);

    /**
     * 出库统计
     * @return
     */
    @GET("/pda/delivery/deliveryStatistics/{deliveryNo}")
    @Headers("Content-Type:application/json;charset=UTF-8")
    Observable<BaseAppEntity<HandingOutStaticsBean>> deliveryStatistics(@Path("deliveryNo") String deliveryNo);
    /**
     * 出库明细
     * @return
     */
    @GET("/pda/delivery/deliveryDetail/{deliveryNo}")
    @Headers("Content-Type:application/json;charset=UTF-8")
    Observable<BaseAppEntity<HandingOutDetailBean>> deliveryDetail(@Path("deliveryNo") String deliveryNo);

    /**
     * 关闭单据
     * @return
     */
    @GET("/pda/delivery/deliveryClose/{deliveryNo}")
    @Headers("Content-Type:application/json;charset=UTF-8")
    Observable<BaseAppEntity<HnadingInDetailListBean>> deliveryClose(@Path("deliveryNo") String deliveryNo);

    /**
     * 关闭单据提示信息
     * @return
     */
    @GET("/pda/delivery/deliveryCloseInfo/{deliveryNo}")
    @Headers("Content-Type:application/json;charset=UTF-8")
    Observable<BaseAppEntity<HnadingInDetailListBean>> deliveryCloseInfo(@Path("deliveryNo") String deliveryNo);
    /**
     * 手动匹配库存查询
     * @return
     */
    @GET("/pda/delivery/queryMatchingStock/{deliveryNo}/{numId}")
    @Headers("Content-Type:application/json;charset=UTF-8")
    Observable<BaseAppEntity<List<WaitOutStockListBean>>> queryMatchingStock(@Path("deliveryNo") String deliveryNo,@Path("numId") String numId);
    /**
     * 手动选择库存确认
     * @return
     */
    @POST("/pda/delivery/confirmStock")
    @Headers("Content-Type:application/json;charset=UTF-8")
    Observable<BaseAppEntity<HnadingInDetailListBean>> confirmStock(@Body ConfirmStockRequest request);
    /**
     * 自动匹配库存查询
     * @return
     */
    @GET("/pda/delivery/queryAutoMatchingStock/{deliveryNo}/{numId}")
    @Headers("Content-Type:application/json;charset=UTF-8")
    Observable<BaseAppEntity<HnadingInDetailListBean>> queryAutoMatchingStock(@Path("deliveryNo") String deliveryNo,@Path("numId") String numId);

    /**
     * 桶料待出库列表
     * @return
     */
    @GET("/pda/delivery/queryWaitOutStockList/{deliveryNo}")
    @Headers("Content-Type:application/json;charset=UTF-8")
    Observable<BaseAppEntity<List<WaitOutStockListBean>>> queryWaitOutStockList(@Path("deliveryNo") String deliveryNo);

    /**
     * 桶料出库
     * @return
     */
    @GET("/pda/delivery/pailOut/{rollerId}/{ids}")
    @Headers("Content-Type:application/json;charset=UTF-8")
    Observable<BaseAppEntity<HnadingInDetailListBean>> pailOut(@Path("rollerId") String rollerId,@Path("ids") String ids);

    /**
     * 根据桶码查询回库详情
     * @return
     */
    @GET("/pda/back/queryBackInfo/{container}/{rollerId}")
    @Headers("Content-Type:application/json;charset=UTF-8")
    Observable<BaseAppEntity<BackInfoBean>> queryBackInfo(@Path("container") String container,@Path("rollerId")String rollerId);

    /**
     * 新增入库单
     * @return
     */
    @GET("/pda/back/addBackEntry/{container}/{weight}/{rollerId}/{actualWeight}")
    @Headers("Content-Type:application/json;charset=UTF-8")
    Observable<BaseAppEntity<BackInfoBean>> addBackEntry(@Path("container") String container,@Path("weight") String weight,@Path("rollerId") String rollerId,@Path("actualWeight") String actualWeight);

    /**
     * 根据桶码查询回库详情
     * @return
     */
    @GET("/pda/back/queryBackInfoByNo/{entryNo}")
    @Headers("Content-Type:application/json;charset=UTF-8")
    Observable<BaseAppEntity<BackInfoBean>> queryBackInfoByNo(@Path("entryNo") String entryNo);



    /**
     * 空桶入库
     * @return
     */
    @GET("/pda/emptyContainer/emptyContainerIn/{container}/{rollerId}")
    @Headers("Content-Type:application/json;charset=UTF-8")
    Observable<BaseAppEntity<BackInfoBean>> emptyContainerIn(@Path("container") String container,@Path("rollerId") String rollerId);

    /**
     * 空桶出库
     * @return
     */
    @GET("/pda/emptyContainer/emptyContainerOut/{number}/{rollerId}")
    @Headers("Content-Type:application/json;charset=UTF-8")
    Observable<BaseAppEntity<BackInfoBean>> emptyContainerOut(@Path("number") String number,@Path("rollerId") String rollerId);

    /**
     *盘库任务列表
     * @return
     */
    @GET("/pda/countTask/wholePalletList")
    @Headers("Content-Type:application/json;charset=UTF-8")
    Observable<BaseRowsAppEntity<List<FullInventoryListBean>>> wholePalletList(@Query("searchValue") String searchValue,@Query("pageNum") Integer pageNum,@Query("pageSize") Integer pageSize);

    /**
     *清单列表
     * @return
     */
    @GET("/pda/countTask/manifestList/{taskNo}")
    @Headers("Content-Type:application/json;charset=UTF-8")
    Observable<BaseRowsAppEntity<List<ManifestListBean>>> manifestList(@Path("taskNo") String taskNo,@Query("pageNum") Integer pageNum,@Query("pageSize") Integer pageSize);

    /**
     * 呼叫下架
     * @return
     */
    @GET("/pda/countTask/callTakeDown/{taskNo}/{storageBinId}")
    @Headers("Content-Type:application/json;charset=UTF-8")
    Observable<BaseAppEntity<BackInfoBean>> callTakeDown(@Path("taskNo") String taskDetailId,@Path("storageBinId") String rollerId);

    /**
     * 呼叫下架
     * @return
     */
    @GET("/pda/countTask/getPalletInfoByBin/{storageBinId}")
    @Headers("Content-Type:application/json;charset=UTF-8")
    Observable<BaseAppEntity<WholePalletInfoBean>> getWholePalletInfo(@Path("storageBinId") String storageBinId);

    /**
     *
     * 通用上传请求（单个）
     * @return
     */
    @Multipart
    @POST("/common/upload")
    //@Headers("Content-Type:application/json;charset=UTF-8")
    Observable<ImageEntity> upload(@Part MultipartBody.Part body);
    /**
     * 盘点确认
     * @return
     */
    @POST("/pda/countTask/wholePalletInventoryConfirm")
    @Headers("Content-Type:application/json;charset=UTF-8")
    Observable<BaseAppEntity<ScanResultBean>> wholePalletInventoryConfirm(@Body InventoryConfirmRequst body);

    /**
     *查询异常的商品列表
     * @return
     */
    @GET("/pda/countTask/countLogList/{taskNo}")
    @Headers("Content-Type:application/json;charset=UTF-8")
    Observable<BaseRowsAppEntity<List<ExceptionsListBean>>> exceptionsList(@Path("taskNo") String taskNo,@Query("pageNum") Integer pageNum,@Query("pageSize") Integer pageSize);

    /**
     *查询异常的商品列表
     * @return
     */
    @GET("/pda/delivery/getInfoByContainer/{container}")
    @Headers("Content-Type:application/json;charset=UTF-8")
    Observable<BaseAppEntity<OutSignBean>> getInfoByContainer(@Path("container") String container);
    /**
     *扫码查询生产订单任务
     * @return
     */
    @GET("/pda/about/getOrderTaskList/{proOrderNo}/{connectionCode}")
    @Headers("Content-Type:application/json;charset=UTF-8")
    Observable<BaseAppEntity<SearchBean>> getOrderTaskList(@Path("proOrderNo") String proOrderNo, @Path("connectionCode")String connectionCode);

    /**
     *一键下架
     * @return
     */
    @GET("/pda/countTask/allCallTakeDown/{taskNo}")
    @Headers("Content-Type:application/json;charset=UTF-8")
    Observable<BaseAppEntity<OutSignBean>> getAllCallTakeDown(@Path("taskNo") String taskNo);
    /**
     *查询异常的商品列表
     * @return
     */
    @GET("/pda/delivery/deliverySignFor/{rollerId}/{container}")
    @Headers("Content-Type:application/json;charset=UTF-8")
    Observable<BaseAppEntity<OutSignBean>> deliverySignFor(@Path("rollerId") String rollerId,@Path("container") String container);


    /**
     * 呼叫下架
     * @return
     */
    @GET("/pda/countTask/countBackConfirm/{taskDetailId}/{rollerId}/{actualStockNum}/{measureWeight}")
    @Headers("Content-Type:application/json;charset=UTF-8")
    Observable<BaseAppEntity<WholePalletInfoBean>> countBackConfirm(@Path("taskDetailId") String taskDetailId, @Path("rollerId") String rollerId, @Path("actualStockNum") String actualStockNum, @Path("measureWeight") String measureWeight);
    /**
     *查询退库单列表
     * @return
     */
    @GET("/pda/back/selectBackList")
    @Headers("Content-Type:application/json;charset=UTF-8")
    Observable<BaseRowsAppEntity<List<BackDepotListBean>>> selectBackList(@Query("type") String type, @Query("pageNum") Integer pageNum, @Query("pageSize") Integer pageSize);
    /**
     *查询退库单列表
     * @return
     */
    @GET("/pda/countTask/countBackConfirm/{storageBinId}")
    @Headers("Content-Type:application/json;charset=UTF-8")
    Observable<BaseRowsAppEntity<List<BackDepotListBean>>> countBackConfirm(@Path("storageBinId") String storageBinId);

    /**
     *停止
     * @return
     */
    @GET("/pda/demo/cycle/{cycle}")
    @Headers("Content-Type:application/json;charset=UTF-8")
    Observable<BaseAppEntity<ScanResultBean>> cycle(@Path("cycle") String cycle);

    /**
     * 盘点确认
     * @return
     */
    @POST("/pda/demo/confirmCarry")
    @Headers("Content-Type:application/json;charset=UTF-8")
    Observable<BaseAppEntity<ScanResultBean>> confirmCarryDemo(@Body AgvMoveRequest body);

    /**
     *循环
     * @return
     */
    @GET("/system/config/configKey/bus.config.showTaskCycle")
    @Headers("Content-Type:application/json;charset=UTF-8")
    Observable<BaseAppEntity<ScanResultBean>> showTaskCycle();
    /**
     * 盘点确认
     * @return
     */
    @POST("/pda/carry/unLock")
    @Headers("Content-Type:application/json;charset=UTF-8")
    Observable<BaseAppEntity<String>> unLock(@Body UnLockBean body);
}


